//
//  TTConfig.h
//  tiantu_offer
//
//  Created by zwb on 16/4/26.
//  Copyright © 2016年 zwb. All rights reserved.
//

#import <Foundation/Foundation.h>


#define ISNOTADDTOKENID     @"isaddtoken"

@interface TTConfig : NSObject

+(BOOL)isPureNum:(NSString *)text;
//整理请求参数
+ (id)requestParamenters:(id)parament;
//图片
+ (UIImage *)rotateImage:(UIImage *)aImage;
//MD5加密
+ (NSString *)MD5ByAStr:(NSString *)aSourceStr;

//图片url拼接
//+ (NSURL *)imageurlstr:(NSString *)str;

//获取字符串大写首字母
+ (NSString *)transform:(NSString *)chinese;


//判断是否为整形：
+ (BOOL)isPureInt:(NSString*)string;

//判断是否为浮点形：
+ (BOOL)isPureFloat:(NSString*)string;

/***********************************************************************************/


/*
 获取server list
 */
+ (void)requeset_serverlist;

/***********************************************************************************/


/*
 添加推送别名
 */
//+ (void)addalias:(NSString *)alias;

//数字
+(BOOL)validateNumber:(NSString *)number;
//邮箱
+ (BOOL) validateEmail:(NSString *)email;
//手机号码验证
+ (BOOL)validateMobile:(NSString *)telnumber;
//车牌号验证
+ (BOOL) validateCarNo:(NSString *)carNo;
//车型
+ (BOOL) validateCarType:(NSString *)CarType;
//用户名
+ (BOOL) validateUserName:(NSString *)name;
//密码
+ (BOOL) validatePassword:(NSString *)passWord;
//昵称
+ (BOOL) validateNickname:(NSString *)nickname;
//身份证号
+ (BOOL) validateIdentityCard: (NSString *)identityCard;
//判断是否有特殊符号
+ (BOOL)effectivePassword:(NSString *)str;


+ (NSString *)hidePhone:(NSString *)phone;

+ (NSString *)hideIdCard:(NSString *)idCard;

+ (NSString *)hieUserName:(NSString *)name;

+ (void)setNewMessage:(BOOL)isNew ;

+ (BOOL)isHaveNewMessage;
@end
